package cfg
import (
	"github.com/vharitonsky/iniflags"
	"flag"
)
var(
//	mysqlStr = flag.String("conn", "root:emdata2015@tcp(192.168.9.100:3306)/emdata_prod", "数据库连接串")
//	MsStr = flag.String("conn", "server=111.207.166.195;database=YintaiHZhou;port=4331;user id=mny;password=intime@123;encrypt=disable", "ms数据库连接串") //keepAlive=120 111.207.166.196
// server=115.28.226.150;database=anzhen_db;user id=;password=1mdata!!
	ConsoleOnly= flag.Bool("console_only", false, "只是控制台程序,不启动webserver")
	CatName= flag.String("catname", "w3", "当前抓取的网站的名字 mdn(mozila dev) es(elasticsearch) rs(redis) w3(w3school)")
	ContinueCrawl= flag.Bool("continueCralw", false, "继续中断抓取")
	ConverTemplate = flag.Bool("ct", false, "转换模板静态文件")
	//Durl = flag.String("durl", "", "下载单个文件")

	DownloadMissRes = flag.Bool("dwm", true, "下载缺失res")
	RedisStr = flag.String("redis","localhost:6379","redis连接信息")
	ListenServer = flag.String("server", ":8082", "绑定Ip")
	UploadPath = flag.String("UploadPath", "/tmp/upload", "上传路径")
	Debug = flag.Bool("debug", true, "打印调试信息")
	Env = flag.String("env", "test", "环境")
	Domian = flag.String("domian", "quickdoc.cn", "域名")
	ImageDomain = flag.String("imgd", "res.quickdoc.cn", "域名")
)
func init() {
	iniflags.Parse();
}
